//
//  TKIMSourceHelper.m
//  TKIM_首创
//
//  Created by liupm on 15/12/23.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import "TKIMSourceHelper.h"

@implementation TKIMSourceHelper
+(UIImage *)getImage:(NSString *)file
{
    NSArray *arr = [file componentsSeparatedByString:@"."];
    if (!arr || arr.count< 2)
    {
        file  =   [file stringByAppendingString:@".png"];
    }

    NSString *url = TKIMSrcName(file);
//    NSLog(@"Alan--%@",url);
    
    return [UIImage imageWithContentsOfFile:url];
}

+(UIImage *)getImage2:(NSString *)file
{
    NSArray *arr = [file componentsSeparatedByString:@"."];
    if (!arr || arr.count< 2)
    {
        file  =   [file stringByAppendingString:@".png"];
    }
    
    NSString *url = TKIMSrcName2(file);
//    NSLog(@"Alan--%@",url);
    
    return [UIImage imageWithContentsOfFile:url];
}
@end
